package com.deluxelx.rmo.common.enums;

public enum ResponseCode {
    // 全局
    SUCCESS("0000", "成功"),
    UN_ERROR("0001","未知失败"),
    ILLEGAL_PARAMETER("0002","非法参数"),
    INDEX_DUP("0003","主键冲突"),
    NO_UPDATE("0004","SQL操作无更新"),
    USER_STATUS_EXCEPTION("0005", "用户信息异常"),
    UN_LOGIN("0006", "用户未登录！"),
    // 留言板
    ILLEGAL_WORDS("0007", "输入的内容包含敏感词汇"),
    // 活动抽奖
    LOSING_DRAW("D001", "未中奖"),
    RULE_ERR("D002", "量化人群规则执行失败"),
    NOT_CONSUMED_TAKE("D003", "未消费活动领取记录"),
    OUT_OF_STOCK("D004", "活动无库存"),
    ERR_TOKEN("D005", "分布式锁失败");

    private final String code;
    private final String info;

    ResponseCode(String code, String info) {
        this.code = code;
        this.info = info;
    }

    public String getCode() {
        return code;
    }

    public String getInfo() {
        return info;
    }

}
